
import SwitchPlatform from './component/SwitchPlatform';

/**
 * 工具栏配置
 */
export default [{
  span: 8,
  style: { justifyContent: 'flex-end' },
  group: [
    { title: 'undo', icon: 'undo', event: 'undo' },
    { title: 'redo', icon: 'redo', event: 'redo' },
    // {title:'属性重做',icon:'shuxing',event:'resetProps'},
    { title: 'resetStyle', icon: 'form', event: 'resetStyle' },
  ],
}, {
  span: 8,
  style: { justifyContent: 'flex-end' },
  group: [
    { title: 'preview', icon: 'eye', event: 'previewPage' },
    // { title: '导出代码', icon: 'export', event: 'outputFiles' },
    { title: 'generateTemplate', icon: 'block', event: 'generateTemplate' },
    { title: 'generateTemplate', icon:SwitchPlatform},
  ],
},
  {
  span: 8,
  style: { justifyContent: 'flex-end', paddingRight: '50px' },
  group: [
    { title: 'save', icon: 'save', event: 'saveComponentsInfo' },
    { title: 'copy', icon: 'copy', event: 'copyComponent' },
    { title: 'clear', icon: 'rest', event: 'clearChildNodes' },
    { title: 'delete', icon: 'delete', event: 'deleteComponent' },

  ],
}];


export const ENABLED = {
  selected: ['copy', 'clear', 'delete', 'generateTemplate'],
  must: ['preview', 'save', '导出代码'],
};

export const DefaultImgBase64 = '';
